﻿using System;
using System.Collections.ObjectModel;
using AesonTesintegrationModul.TestApp.Config;
using AesonTesintegrationModul.TestApp.Helpers.Navigation;
using Microsoft.Practices.Prism.Commands;
using Microsoft.Practices.Prism.Logging;
using Microsoft.Practices.Prism.Mvvm;
using Microsoft.Practices.Prism.Regions;

namespace AesonTesintegrationModul.TestApp.Views.HomePage
{
    public class HomePageViewModel : BindableBase
    {

        #region Command
        public DelegateCommand NavToIntegrationtestCommand { get; set; }
        #endregion

        #region Field
        IRegionManager RegionManager { get; set; }
        #endregion

        #region Ctor
        public HomePageViewModel(ILoggerFacade logger, IRegionManager regionManager)
        {
            logger.Log("HomePageViewModel loaded", Category.Debug, Priority.Low);
            this.RegionManager = regionManager;
            this.NavToIntegrationtestCommand = new DelegateCommand(NavToIntegrationtest);

        }
        #endregion

        #region Methodes
        private void NavToIntegrationtest()
        {
            RegionManager.MainRegionNavigate(ViewNames.IntegrationTest);
        }
        #endregion

        #region Tools

        #endregion


    }


}
